﻿using LdtDataEngin.ModuleDetail.PersonnelAnalysis.PersonnelModel.Interface;
using LdtDataEngin.ModuleDetail.PersonnelAnalysis.PersonnelModel.Model;
using LdtJudge.DataEngine.DataBaseStores;
using System;
using System.Collections.Generic;
using System.Text;

namespace LdtDataEngin.ModuleDetail.PersonnelAnalysis.PersonnelModel.Personnel
{
    public class PartyInformation : IStart
    {
        public DataContext dataContext;
        /// <summary>
        /// 刑事一审代理人获取
        /// </summary>
        /// <param name="RowRelatRoleName"></param>
        /// <param name="personnelModel"></param>
        /// <returns></returns>
        public string A1AgentPersonnelStart(string RowRelatRoleName, TableModel tableModel)
        {
            HandleBaseClass handleBaseClass = new HandleBaseClass() { dataContext = dataContext, tableModel = tableModel, RowRelatRoleName = RowRelatRoleName };
            return handleBaseClass.FirstInstanceOthen(tableModel.spokeName.ES_SuitDegreeName, dataContext.DataLayerAns.CaseType);
        }

        public string TrialPersonnelStart(string RowRelatRoleName, TableModel tableModel)
        {
            HandleBaseClass handleBaseClass = new HandleBaseClass() { dataContext = dataContext, tableModel = tableModel, RowRelatRoleName = RowRelatRoleName };
            return handleBaseClass.Trial();

        }

        /// <summary>
        /// 刑事一审参与人原发言人代称获取
        /// </summary>
        /// <param name="RowRelatRoleName"></param>
        /// <param name="personnelModel"></param>
        /// <returns></returns>
        public string A1PersonnelStart(string RowRelatRoleName, TableModel tableModel)
        {
            HandleBaseClass handleBaseClass = new HandleBaseClass() { dataContext = dataContext, tableModel = tableModel, RowRelatRoleName = RowRelatRoleName };
            return handleBaseClass.FirstInstancePant(tableModel.spokeName.ES_SuitDegreeName, dataContext.DataLayerAns.CaseType);
        }
        /// <summary>
        /// 刑事二审代理人获取
        /// </summary>
        /// <param name="RowRelatRoleName"></param>
        /// <param name="personnelModel"></param>
        /// <returns></returns>
        public string A2AgentPersonnelStart(string RowRelatRoleName, TableModel tableModel)
        {
            HandleBaseClass handleBaseClass = new HandleBaseClass() { dataContext = dataContext, tableModel = tableModel, RowRelatRoleName = RowRelatRoleName };
            return handleBaseClass.SecondInstanceOthen(tableModel.spokeName.ES_SuitDegreeName, dataContext.DataLayerAns.CaseType);
        }

        /// <summary>
        /// 刑事二审参与人原发言人代称获取
        /// </summary>
        /// <param name="RowRelatRoleName"></param>
        /// <param name="personnelModel"></param>
        /// <returns></returns>
        public string A2PersonnelStart(string RowRelatRoleName, TableModel tableModel)
        {
            HandleBaseClass handleBaseClass = new HandleBaseClass() { dataContext = dataContext, tableModel = tableModel, RowRelatRoleName = RowRelatRoleName };
            return handleBaseClass.SecondInstancePant(tableModel.spokeName.ES_SuitDegreeName, dataContext.DataLayerAns.CaseType);
        }
        /// <summary>
        /// 民事一审代理人获取
        /// </summary>
        /// <param name="RowRelatRoleName"></param>
        /// <param name="personnelModel"></param>
        /// <returns></returns>
        public string B1AgentPersonnelStart(string RowRelatRoleName, TableModel tableModel)
        {
            HandleBaseClass handleBaseClass = new HandleBaseClass() { dataContext = dataContext, tableModel = tableModel, RowRelatRoleName = RowRelatRoleName };
            return handleBaseClass.FirstInstanceOthen(tableModel.spokeName.ES_SuitDegreeName, dataContext.DataLayerAns.CaseType);
        }

        /// <summary>
        /// 民事一审参与人原发言人代称获取
        /// </summary>
        /// <param name="RowRelatRoleName"></param>
        /// <param name="personnelModel"></param>
        /// <returns></returns>
        public string B1PersonnelStart(string RowRelatRoleName, TableModel tableModel)
        {
            HandleBaseClass handleBaseClass = new HandleBaseClass() { dataContext = dataContext, tableModel = tableModel, RowRelatRoleName = RowRelatRoleName };
            return handleBaseClass.FirstInstancePant(tableModel.spokeName.ES_SuitDegreeName, dataContext.DataLayerAns.CaseType);
        }

        /// <summary>
        /// 刑事二审代理人信息获取
        /// </summary>
        /// <param name="RowRelatRoleName"></param>
        /// <param name="personnelModel"></param>
        /// <returns></returns>
        public string B2AgentPersonnelStart(string RowRelatRoleName, TableModel tableModel)
        {
            HandleBaseClass handleBaseClass = new HandleBaseClass() { dataContext = dataContext, tableModel = tableModel, RowRelatRoleName = RowRelatRoleName };
            return handleBaseClass.SecondInstanceOthen(tableModel.spokeName.ES_SuitDegreeName, dataContext.DataLayerAns.CaseType);
        }

        /// <summary>
        /// 民事二审参与人原发言人代称获取
        /// </summary>
        /// <param name="RowRelatRoleName"></param>
        /// <param name="personnelModel"></param>
        /// <returns></returns>
        public string B2PersonnelStart(string RowRelatRoleName, TableModel tableModel)
        {
            HandleBaseClass handleBaseClass = new HandleBaseClass() { dataContext = dataContext, tableModel = tableModel, RowRelatRoleName = RowRelatRoleName };
            return handleBaseClass.SecondInstancePant(tableModel.spokeName.ES_SuitDegreeName, dataContext.DataLayerAns.CaseType);
        }
    }
}
